예제 #1
0
 def test_matching_user_returns_true(self):
     self.assertTrue(ByUsers(['A User'])(Changeset(user='******')))
예제 #2
0
    def test_str_returns_description_of_filter_for_multiple_users(self):
        users_filter = ByUsers(['A User', 'B User'])

        self.assertEquals('Users: A User, B User', users_filter.__str__())
예제 #3
0
 def test_not_matching_user_returns_false(self):
     self.assertFalse(ByUsers(['A User'])(Changeset(user='******')))
예제 #4
0
    def test_str_returns_description_of_filter_for_multiple_users(self):
        users_filter = ByUsers(['A User', 'B User'])

        self.assertEquals('Users: A User, B User', users_filter.__str__())
예제 #5
0
 def test_any_matching_user_passes(self):
     self.assertTrue(
         ByUsers(['A User', 'B User'])(Changeset(user='******')))
예제 #6
0
 def test_partial_matches(self):
     self.assertTrue(ByUsers(['user'])(Changeset(user='******')))
예제 #7
0
 def test_case_insensitive(self):
     self.assertTrue(ByUsers(['A USER'])(Changeset(user='******')))