def test_get_meta_extra_props(self): m = MetadataMixin() self.assertEqual(m.get_meta_extra_props(), None) m.extra_props = {'app_name': 'Foo', 'app_id': 'Bar'} self.assertEqual(m.get_meta_extra_props(), { 'app_name': 'Foo', 'app_id': 'Bar' })
def test_get_meta_extra_custom_props(self): m = MetadataMixin() self.assertEqual(m.get_meta_extra_custom_props(), None) m.extra_props = [ ('property', 'app_name', 'Foo'), ('property', 'app_id', 'Bar'), ] self.assertEqual(m.get_meta_extra_props(), [ ('property', 'app_name', 'Foo'), ('property', 'app_id', 'Bar'), ])
def test_get_meta_extra_props(self): m = MetadataMixin() self.assertEqual( m.get_meta_extra_props(), None ) m.extra_props = { 'app_name': 'Foo', 'app_id': 'Bar' } self.assertEqual( m.get_meta_extra_props(), { 'app_name': 'Foo', 'app_id': 'Bar' } )
def test_get_meta_extra_custom_props(self): m = MetadataMixin() self.assertEqual( m.get_meta_extra_custom_props(), None ) m.extra_props = [ ('property', 'app_name', 'Foo'), ('property', 'app_id', 'Bar'), ] self.assertEqual( m.get_meta_extra_props(), [ ('property', 'app_name', 'Foo'), ('property', 'app_id', 'Bar'), ] )