def test_from_dict__dict(self): x = Subscriber.from_dict(url='http://e.com', event='foo.bar') assert isinstance(x, Subscriber) assert x.url == 'http://e.com' assert x.event == 'foo.bar'
def test_from_dict__dict(self): x = Subscriber.from_dict(url='http://e.com', event='foo.bar') self.assertIsInstance(x, Subscriber) self.assertEqual(x.url, 'http://e.com') self.assertEqual(x.event, 'foo.bar')