예제 #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'
예제 #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'
예제 #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')