def test_add_measure(self): testMeasure = TestDict(**{ 'quantity': 'test', 'value': 1, }) measureRec = ESDoc.addMeasurement(testMeasure) self.assertEqual(measureRec.quantity, 'test') self.assertEqual(measureRec.value, 1)
def test_add_measure(self): testMeasure = TestDict(**{ 'quantity': 'test', 'value': 1, }) measureRec = ESDoc.addMeasurement(testMeasure) assert measureRec.quantity == 'test' assert measureRec.value == 1