def file_check(self, dev, value, message):
    with open(('/dev/' + dev), 'r') as f:
        self.assertEqual(f.readline(), (str(value) + '\n'), message)
def file_check(self, dev, value, message):
    with open(('/dev/' + dev), 'r') as f:
        self.assertEqual(f.readline(), (str(value) + '\n'), message)