# Path: habitat/sensors/base.py
# def ascii_int(config, data):
# def ascii_float(config, data):
# def string(data):
# def constant(config, data):
# def binary_b64(data):


from nose.tools import assert_raises, raises
from ...sensors import base
# Copyright 2011 (C) Adam Greig
#
# This file is part of habitat.
#
# habitat is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# habitat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with habitat.  If not, see <http://www.gnu.org/licenses/>.

"""
Tests the base sensor functions
"""



class TestBaseSensors:
    def test_ascii_ints(self):

# Path: habitat/sensors/base.py
# def ascii_int(config, data):
# def ascii_float(config, data):
# def string(data):
# def constant(config, data):
# def binary_b64(data):


# Path: habitat/tests/test_sensors/test_base.py
from nose.tools import assert_raises, raises
from ...sensors import base

# Copyright 2011 (C) Adam Greig
#
# This file is part of habitat.
#
# habitat is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# habitat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with habitat.  If not, see <http://www.gnu.org/licenses/>.

"""
Tests the base sensor functions
"""



class TestBaseSensors:
    def test_ascii_ints(self):

        assert base.ascii_int({}, "12") == 12