Esempio n. 1
0
 def test_data_with_regular(self):
     faj = FroniusArchiveJson(archive_json)
     self.assertEqual(len(faj.data()), 2)
     self.assertEqual((faj.device_ids()),
                      ['datamanager:/dc/f0056cc6/', 'inverter/1'])
     self.assertEqual((faj.channels('datamanager:/dc/f0056cc6/')),
                      ['Digital_PowerManagementRelay_Out_1'])
     self.assertEqual((faj.channels('inverter/1')), ['TimeSpanInSec'])
     self.assertEqual(len(faj.data()['inverter/1']), 20)
Esempio n. 2
0
 def test_channels_with_regular(self):
     faj = FroniusArchiveJson(archive_json)
     self.assertNotEqual(0, len(faj.channels()))