def setUp(self): super(TestGenerateKMLWithSimulation, self).setUp() self.mission = test_utils.create_sample_mission(self.superuser) test_utils.simulate_team_mission(self, self.mission, self.superuser, self.user0) self.folders = ['Flights', 'Missions'] self.users = [self.user0.username]
def test_generate_live_kml(self): """Tests the generate KML method.""" self.mission = test_utils.create_sample_mission(self.superuser) test_utils.simulate_team_mission(self, self.mission, self.superuser, self.user0) self.LoginSuperuser() response = self.client.get(live_url) self.assertEqual(200, response.status_code) response = self.client.get(update_url) self.assertEqual(200, response.status_code)
def setUp(self): self.superuser = User.objects.create_superuser(username='******', password='******', email='*****@*****.**') self.superuser.save() self.mission = test_utils.create_sample_mission(self.superuser) self.user0 = User.objects.create_user(username='******', password='******', email='*****@*****.**', first_name='Foo', last_name='Bar') self.user0.save() test_utils.simulate_team_mission(self, self.mission, self.superuser, self.user0) self.user1 = User.objects.create_user(username='******', password='******', email='*****@*****.**', first_name='Bar', last_name='Baz') self.user1.save()
def setUp(self): super(TestMissionsViewSampleMission, self).setUp() self.mission = test_utils.create_sample_mission(self.superuser) test_utils.simulate_team_mission(self, self.mission, self.superuser, self.user0)
def setUp(self): super(TestEvaluateTeams, self).setUp() self.mission = test_utils.create_sample_mission(self.superuser) test_utils.simulate_team_mission(self, self.mission, self.superuser, self.user0)