(self)
| 203 | self.assertIn(tg, database.table_groups) |
| 204 | |
| 205 | def test_add_table_group_bad(self) -> None: |
| 206 | t1 = Table('table1') |
| 207 | t2 = Table('table2') |
| 208 | tg = TableGroup('mytablegroup', [t1, t2]) |
| 209 | database = Database() |
| 210 | database.add_table_group(tg) |
| 211 | with self.assertRaises(DatabaseValidationError): |
| 212 | database.add_table_group(tg) |
| 213 | tg2 = TableGroup('mytablegroup', [t2]) |
| 214 | with self.assertRaises(DatabaseValidationError): |
| 215 | database.add_table_group(tg2) |
| 216 | |
| 217 | def test_delete_table_group(self) -> None: |
| 218 | t1 = Table('table1') |
nothing calls this directly
no test coverage detected