def test_order_find_by_user_existing(self):
        res = ep.orders_find_by_user(self.user1['user_id'])

        orders = res.json()['order_ids']
        self.assertIsInstance(orders, list)
        self.assertIn(self.order1['order_id'], orders)

        res2 = ep.orders_create(self.user1['user_id'])

        self.assertTrue(res2.ok)

        res = ep.orders_find_by_user(self.user1['user_id'])
        orders = res.json()['order_ids']
        self.assertIsInstance(orders, list)
        self.assertIn(self.order1['order_id'], orders)
        self.assertIn(res2.json()['order_id'], orders)
    def test_order_find_by_user_non_existing(self):
        res = ep.orders_find_by_user(self.order1['order_id'])

        orders = res.json()['order_ids']

        self.assertTrue(res.ok)
        self.assertIsInstance(orders, list)
        self.assertEqual(len(orders), 0)