Пример #1
0
 def test_table_not_exists(self):
     f = UserTableSelectionForm(self.connection, data={'users_table': 'Users_wrong'})
     self.assertFalse(f.is_valid())
Пример #2
0
 def test_table_selection(self):
     f = UserTableSelectionForm(self.connection, data={'users_table': 'Users'})
     self.assertTrue(f.is_valid())