Пример #1
0
class NewOrderTest(unittest.TestCase):
    """Tests for acme.messages.NewOrder."""
    def setUp(self):
        from acme.messages import NewOrder
        self.reg = NewOrder(identifiers=mock.sentinel.identifiers)

    def test_to_partial_json(self):
        self.assertEqual(self.reg.to_json(), {
            'identifiers': mock.sentinel.identifiers,
        })
Пример #2
0
class NewOrderTest(unittest.TestCase):
    """Tests for acme.messages.NewOrder."""

    def setUp(self):
        from acme.messages import NewOrder
        self.reg = NewOrder(
            identifiers=mock.sentinel.identifiers)

    def test_to_partial_json(self):
        self.assertEqual(self.reg.to_json(), {
            'identifiers': mock.sentinel.identifiers,
        })
Пример #3
0
 def setUp(self):
     from acme.messages import NewOrder
     self.reg = NewOrder(
         identifiers=mock.sentinel.identifiers)
Пример #4
0
 def setUp(self):
     from acme.messages import NewOrder
     self.reg = NewOrder(
         identifiers=mock.sentinel.identifiers)