MCPcopy Create free account
hub / github.com/Vanderhoof/PyDBML / test_getitem

Method test_getitem

test/test_classes/test_table_group.py:8–19  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6
7class TestTableGroup(TestCase):
8 def test_getitem(self) -> None:
9 merchants = Table('merchants')
10 countries = Table('countries')
11 customers = Table('customers')
12 tg = TableGroup(
13 'mytg',
14 [merchants, countries, customers],
15 comment='My table group\nmultiline comment'
16 )
17 self.assertIs(tg[1], countries)
18 with self.assertRaises(IndexError):
19 tg[22]
20
21 def test_iter(self) -> None:
22 merchants = Table('merchants')

Callers

nothing calls this directly

Calls 2

TableClass · 0.90
TableGroupClass · 0.90

Tested by

no test coverage detected