예제 #1
0
    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]
예제 #2
0
    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)
예제 #3
0
    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()
예제 #4
0
 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)
예제 #5
0
 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)