Esempio n. 1
0
 def test_substring(self):
     assert_that(User.search_by_string('doe').count(), equal_to(2))
Esempio n. 2
0
 def test_deleted(self):
     self.u1.deleted = True
     assert_that(User.search_by_string('John').count(), equal_to(1))
     assert_that(User.search_by_string('Doe').count(), equal_to(1))
Esempio n. 3
0
 def test_firstname_and_lastname_reversed(self):
     assert_that(User.search_by_string('doesr johnsr').count(), equal_to(1))
Esempio n. 4
0
 def test_lastname(self):
     assert_that(User.search_by_string('doesr').count(), equal_to(1))
Esempio n. 5
0
 def test_firstname(self):
     assert_that(User.search_by_string('johnsr').count(), equal_to(1))
Esempio n. 6
0
 def test_username(self):
     assert_that(User.search_by_string('edoed').count(), equal_to(1))
Esempio n. 7
0
 def test_email(self):
     assert_that(User.search_by_string('john@john').count(), equal_to(1))