Exemplo n.º 1
0
 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'
Exemplo n.º 2
0
 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'
Exemplo n.º 3
0
 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')