def test_info(self):
     httpretty.register_uri(
         httpretty.GET,
         'http://kueue.hwlab.suse.de:8080/srinfo/1234567890/',
         body=TEST_RESPONSE,
     )
     srinfo = SRInfo()
     info = srinfo.get_info(1234567890)
     self.assertEquals(info['cus_account'], 'SOFTWARE')
     self.assertEquals(info['service_level'], '2')
Beispiel #2
0
 def test_status(self):
     '''
     Test getting SR status.
     '''
     httpretty.register_uri(
         httpretty.GET,
         'http://kueue.hwlab.suse.de:8080/srstatus/1234567890/',
         body='Closed')
     srinfo = SRInfo()
     self.assertEquals('Closed', srinfo.get_status(1234567890))
 def test_status(self):
     httpretty.register_uri(
         httpretty.GET,
         'http://kueue.hwlab.suse.de:8080/srstatus/1234567890/',
         body='Closed'
     )
     srinfo = SRInfo()
     self.assertEquals(
         'Closed',
         srinfo.get_status(1234567890)
     )
 def test_info(self):
     '''
     Test getting SR information.
     '''
     httpretty.register_uri(
         httpretty.GET,
         'http://kueue.hwlab.suse.de:8080/srinfo/1234567890/',
         body=TEST_RESPONSE,
     )
     srinfo = SRInfo()
     info = srinfo.get_info(1234567890)
     self.assertEqual(info['cus_account'], 'SOFTWARE')
     self.assertEqual(info['service_level'], '2')