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
20dbb51b
Commit
20dbb51b
authored
Mar 04, 2016
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
d73b266a
40e6ca65
Changes
1
Show 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 @
20dbb51b
...
...
@@ -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