Esempio n. 1
0
class CoreProfileTest(TentdTestCase):
    def test_core_profile(self):
        self.entity = Entity(name="testuser")
        self.entity.save()

        with self.assertRaises(Exception):
            print self.entity.core
Esempio n. 2
0
class CoreProfileTest(TentdTestCase):
    def test_core_profile(self):
        self.entity = Entity(name="testuser")
        self.entity.save()

        with self.assertRaises(Exception):
            print self.entity.core
Esempio n. 3
0
 def test_create_identical_entity(self):
     """Check that properly inserting a document does not overwrite an existing one"""
     with self.assertRaises(db.NotUniqueError):
         entity = Entity(name="testuser")
         entity.save()
Esempio n. 4
0
 def test_create_identical_entity(self):
     """Check that properly inserting a document does not overwrite an existing one"""
     with self.assertRaises(db.NotUniqueError):
         entity = Entity(name="testuser")
         entity.save()