示例#1
0
 def test_site_is_not_bootstrapped(self):
     from karlserve.instance import find_users
     from karlserve.instance import Users
     self.assertTrue(find_users({}), Users)
示例#2
0
 def test_site_is_bootstrapped(self):
     from karlserve.instance import find_users
     class DummySite:
         users = object()
     jar = {'site': DummySite}
     self.assertEqual(find_users(jar), DummySite.users)