Пример #1
0
 def test_metadata_default(self):
     cell = PollingCell(
         target=NoInherentCellSpecimen(),
         key='value',
         changes='never')
     self.assertEqual(cell.metadata().naming, EnumRow(
         label='value',
         sort_key='value'))
Пример #2
0
 def test_metadata_default(self):
     cell = PollingCell(
         target=NoInherentCellSpecimen(),
         key='value',
         changes='never')
     self.assertEqual(cell.metadata().naming, EnumRow(
         label='value',
         sort_key='value'))
Пример #3
0
 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'))
Пример #4
0
 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'))