Beispiel #1
0
 def test_primary_key(self):
     simple_field = SimpleField("test", SqlType.INTEGER, primary_key=True)
     self.assertEquals(simple_field.field_definition_sql(),
                       '"test" INTEGER NOT NULL PRIMARY KEY')
Beispiel #2
0
 def test_field_definition(self):
     simple_field = SimpleField("test", SqlType.INTEGER)
     self.assertEquals(simple_field.field_definition_sql(),
                       '"test" INTEGER')