Files
PySGP30/tests/test_sgp.py
2018-04-12 19:49:43 +00:00

12 lines
283 B
Python

from .context import sgp30
from mock_smbus2 import MockSMBus
import unittest
class BasicTestSuite(unittest.TestCase):
"""Basic test cases."""
def setUp(self):
self.bus = MockSMBus()
def test_init(self):
b=sgp30.sgp30.Sgp30(self.bus)
b.init_sgp()