Example #1
0
    def test_umi_login(self):
        umi = Umi()
        umi.login()

        print(umi.session)
        print(umi.token)

        umi.logout()
Example #2
0
 def test_get_marina(self):
     self.umi = Umi()
     self.umi.login()
     r = self.umi.get_marina()
     print(r)
     self.umi.logout()
Example #3
0
 def test_get_fisher_fix_net(self):
     self.umi = Umi()
     self.umi.login()
     r = self.umi.get_fisher_fix_net()
     print(r)
     self.umi.logout()
Example #4
0
class MyTestCase(unittest.TestCase):
    def test_umi_login(self):
        umi = Umi()
        umi.login()

        print(umi.session)
        print(umi.token)

        umi.logout()

    def test_url_encoding(self):
        umi = Umi()
        umi.login()
        print(umi.make_params({'a': 'b', 'c': 'd'}))
        umi.logout()

    def test_parse_invetry(self):
        umi = Umi()
        print(umi.parse_inventory(INVENTRY_JSON))
        umi.logout()

    def test_get_lights(self):
        umi = Umi()
        umi.login()
        r = self.umi.get_light_house()
        print(r)
        umi.logout()

    def test_get_obstacle(self):
        self.umi = Umi()
        self.umi.login()
        r = self.umi.get_obstacle()
        print(r)
        self.umi.logout()

    def test_get_light_house(self):
        self.umi = Umi()
        self.umi.login()
        r = self.umi.get_light_house()
        print(r)
        self.umi.logout()

    def test_get_float_lights(self):
        self.umi = Umi()
        self.umi.login()
        r = self.umi.get_float_lights()
        print(r)
        self.umi.logout()

    def test_get_pillar_lights(self):
        self.umi = Umi()
        self.umi.login()
        r = self.umi.get_pillar_lights()
        print(r)
        self.umi.logout()

    def test_get_other_lights(self):
        self.umi = Umi()
        self.umi.login()
        r = self.umi.get_other_lights()
        print(r)
        self.umi.logout()

    def test_get_traffic_route_major(self):
        self.umi = Umi()
        self.umi.login()
        r = self.umi.get_traffic_route_major()
        print(r)
        self.umi.logout()

    def test_get_traffic_route_minor(self):
        self.umi = Umi()
        self.umi.login()
        r = self.umi.get_traffic_route_minor()
        print(r)
        self.umi.logout()

    def test_get_fisher(self):
        self.umi = Umi()
        self.umi.login()
        r = self.umi.get_fisher()
        print(r)
        self.umi.logout()

    def test_get_fisher_fix_net(self):
        self.umi = Umi()
        self.umi.login()
        r = self.umi.get_fisher_fix_net()
        print(r)
        self.umi.logout()

    def test_get_marina(self):
        self.umi = Umi()
        self.umi.login()
        r = self.umi.get_marina()
        print(r)
        self.umi.logout()

    def test_get_swimming_beach(self):
        self.umi = Umi()
        self.umi.login()
        r = self.umi.get_swimming_beach()
        print(r)
        self.umi.logout()

    def test_get_tide_probe(self):
        self.umi = Umi()
        self.umi.login()
        r = self.umi.get_tide_probe()
        print(r)
        self.umi.logout()

    def test_get_safety_notice(self):
        self.umi = Umi()
        self.umi.login()
        r = self.umi.get_safety_notice()
        print(r)
        self.umi.logout()
Example #5
0
 def test_get_other_lights(self):
     self.umi = Umi()
     self.umi.login()
     r = self.umi.get_other_lights()
     print(r)
     self.umi.logout()
Example #6
0
 def test_get_traffic_route_minor(self):
     self.umi = Umi()
     self.umi.login()
     r = self.umi.get_traffic_route_minor()
     print(r)
     self.umi.logout()
Example #7
0
 def test_get_obstacle(self):
     self.umi = Umi()
     self.umi.login()
     r = self.umi.get_obstacle()
     print(r)
     self.umi.logout()
Example #8
0
 def test_get_light_house(self):
     self.umi = Umi()
     self.umi.login()
     r = self.umi.get_light_house()
     print(r)
     self.umi.logout()
Example #9
0
 def test_parse_invetry(self):
     umi = Umi()
     print(umi.parse_inventory(INVENTRY_JSON))
     umi.logout()
Example #10
0
 def test_url_encoding(self):
     umi = Umi()
     umi.login()
     print(umi.make_params({'a': 'b', 'c': 'd'}))
     umi.logout()
Example #11
0
 def test_get_safety_notice(self):
     self.umi = Umi()
     self.umi.login()
     r = self.umi.get_safety_notice()
     print(r)
     self.umi.logout()
Example #12
0
 def test_get_tide_probe(self):
     self.umi = Umi()
     self.umi.login()
     r = self.umi.get_tide_probe()
     print(r)
     self.umi.logout()
Example #13
0
 def test_get_swimming_beach(self):
     self.umi = Umi()
     self.umi.login()
     r = self.umi.get_swimming_beach()
     print(r)
     self.umi.logout()