def test_ascending_sort_by_start_time_puts_instances_with_null_value_first(self):
        self.client.force_authenticate(self.staff)

        factories.InstanceFactory.create_batch(2, start_time=None)
        factories.InstanceFactory()

        response = self.client.get(factories.InstanceFactory.get_list_url(),
                                   data={'o': 'start_time'})
        self.assertEqual(response.status_code, status.HTTP_200_OK)

        for i in (0, 1):
            self.assertEqual(response.data[i]['start_time'], None)

        self.assertTrue(response.data[3]['start_time'] < response.data[2]['start_time'])
dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/iaas/tests/test_provisioning.py/InstanceListRetrieveTest.test_ascending_sort_by_start_time_puts_instances_with_null_value_first/swapped operands of `<`