Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
40e6ca65
Commit
40e6ca65
authored
Mar 04, 2016
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not use deprecated method
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
f6f4462f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
weblate/accounts/tests/test_models.py
weblate/accounts/tests/test_models.py
+4
-4
No files found.
weblate/accounts/tests/test_models.py
View file @
40e6ca65
...
...
@@ -33,12 +33,12 @@ class AutoGroupTest(TestCase):
def
test_default
(
self
):
user
=
self
.
create_user
()
self
.
assertEqual
s
(
user
.
groups
.
count
(),
1
)
self
.
assertEqual
(
user
.
groups
.
count
(),
1
)
def
test_none
(
self
):
AutoGroup
.
objects
.
all
().
delete
()
user
=
self
.
create_user
()
self
.
assertEqual
s
(
user
.
groups
.
count
(),
0
)
self
.
assertEqual
(
user
.
groups
.
count
(),
0
)
def
test_matching
(
self
):
AutoGroup
.
objects
.
create
(
...
...
@@ -46,7 +46,7 @@ class AutoGroupTest(TestCase):
group
=
Group
.
objects
.
get
(
name
=
'Guests'
)
)
user
=
self
.
create_user
()
self
.
assertEqual
s
(
user
.
groups
.
count
(),
2
)
self
.
assertEqual
(
user
.
groups
.
count
(),
2
)
def
test_nonmatching
(
self
):
AutoGroup
.
objects
.
create
(
...
...
@@ -54,4 +54,4 @@ class AutoGroupTest(TestCase):
group
=
Group
.
objects
.
get
(
name
=
'Guests'
)
)
user
=
self
.
create_user
()
self
.
assertEqual
s
(
user
.
groups
.
count
(),
1
)
self
.
assertEqual
(
user
.
groups
.
count
(),
1
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment