def test_metadata_default(self): cell = PollingCell( target=NoInherentCellSpecimen(), key='value', changes='never') self.assertEqual(cell.metadata().naming, EnumRow( label='value', sort_key='value'))
def test_metadata_default(self): cell = PollingCell( target=NoInherentCellSpecimen(), key='value', changes='never') self.assertEqual(cell.metadata().naming, EnumRow( label='value', sort_key='value'))
def test_metadata_explicit(self): cell = PollingCell(target=NoInherentCellSpecimen(), key='value', changes='never', label='foo', description='bar', sort_key='baz') self.assertEqual( cell.metadata().naming, EnumRow(label='foo', description='bar', sort_key='baz'))
def test_metadata_explicit(self): cell = PollingCell( target=NoInherentCellSpecimen(), key='value', changes='never', label='foo', description='bar', sort_key='baz') self.assertEqual(cell.metadata().naming, EnumRow( label='foo', description='bar', sort_key='baz'))