def test_create_complete(self):
     example = Example(self.minimum_data)
     example.add_custom_data(self.additional_data)
     eq_(15, example.interval)
     eq_('alias/project', example.project)
     eq_('8.8.8.8', example.ip_address)
     eq_(1415823240, example.period)
     eq_(1, example.param1)
     eq_(2.3, example.param2)
     eq_(1e-200, example.param3)
     eq_(['1', '2', '3'], example.param4)
     eq_({'1': 'val1', '2':'val2'}, example.param5)
示例#2
0
 def test_create_complete(self):
     example = Example(self.minimum_data)
     example.add_custom_data(self.additional_data)
     eq_(15, example.interval)
     eq_('alias/project', example.project)
     eq_('8.8.8.8', example.ip_address)
     eq_(1415823240, example.period)
     eq_(1, example.param1)
     eq_(2.3, example.param2)
     eq_(1e-200, example.param3)
     eq_(['1', '2', '3'], example.param4)
     eq_({'1': 'val1', '2': 'val2'}, example.param5)
 def test_validate_complete_data(self):
     example = Example(self.minimum_data)
     example.add_custom_data(self.additional_data)
     example.validate()
示例#4
0
 def test_validate_complete_data(self):
     example = Example(self.minimum_data)
     example.add_custom_data(self.additional_data)
     example.validate()