Пример #1
0
 def test_is_native_login(self):
     for campaign in self.campaign_lists:
         native = campaigns.is_native_login(campaign)
         if campaign == 'prereg' or campaign == 'erpc':
             assert_true(native)
         else:
             assert_false(native)
     native = campaigns.is_proxy_login(self.invalid_campaign)
     assert_true(native is None)
Пример #2
0
 def test_is_native_login(self):
     for campaign in self.campaign_lists:
         native = campaigns.is_native_login(campaign)
         if campaign == 'prereg' or campaign == 'erpc':
             assert_true(native)
         else:
             assert_false(native)
     native = campaigns.is_proxy_login(self.invalid_campaign)
     assert_true(native is None)