Esempio n. 1
0
 def test_prettify_agent_no_minor_no_patch(self):
     """Test the prettify_agent_version with no minor or patch number"""
     data = {
         'family': 'Internet Explorer',
         'major': '10'
     }
     result = utils.prettify_agent_version(data)
     self.assertEqual(result, 'Internet Explorer 10')
Esempio n. 2
0
 def test_prettify_agent(self):
     """Test the prettify_agent_version with all fields"""
     data = {
         'family': 'Chrome',
         'major': '33',
         'minor': '0',
         'patch': '1750'
     }
     result = utils.prettify_agent_version(data)
     self.assertEqual(result, 'Chrome 33.0.1750')
Esempio n. 3
0
 def test_prettify_agent(self):
     """Test the prettify_agent_version with all fields"""
     data = {
         'family': 'Chrome',
         'major': '33',
         'minor': '0',
         'patch': '1750'
     }
     result = utils.prettify_agent_version(data)
     self.assertEqual(result, 'Chrome 33.0.1750')
Esempio n. 4
0
 def test_prettify_agent_no_minor_no_patch(self):
     """Test the prettify_agent_version with no minor or patch number"""
     data = {'family': 'Internet Explorer', 'major': '10'}
     result = utils.prettify_agent_version(data)
     self.assertEqual(result, 'Internet Explorer 10')