2016-06-26 17:55:14 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
|
|
# Author: Costin Constantin <costin.c.constantin@intel.com>
|
|
|
|
|
# Copyright (c) 2015 Intel Corporation.
|
|
|
|
|
#
|
|
|
|
|
# Contributors: Alex Tereschenko <alext.mkrs@gmail.com>
|
|
|
|
|
#
|
2019-05-09 09:47:11 -07:00
|
|
|
# SPDX-License-Identifier: MIT
|
2016-06-26 17:55:14 +02:00
|
|
|
|
|
|
|
|
import mraa as m
|
|
|
|
|
import unittest as u
|
|
|
|
|
|
|
|
|
|
class GeneralChecks(u.TestCase):
|
|
|
|
|
def test_mraa_version(self):
|
|
|
|
|
version = m.getVersion()
|
|
|
|
|
print("Version is: " + version)
|
|
|
|
|
self.assertIsNotNone(version)
|
|
|
|
|
self.assertNotEqual(version, "", "MRAA version is an empty string")
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
u.main()
|