def test_site_is_not_bootstrapped(self): from karlserve.instance import find_users from karlserve.instance import Users self.assertTrue(find_users({}), Users)
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)