import unittest
import logging
import chip.mac
import chip.phy
import chip.mlme as mlme


class TestMAC( unittest.TestCase):
    def setUp( self):
        logging.basicConfig( format   = '%(asctime)s %(message)s', \
                             filename = 'test_mac.log', \
                             filrmode = 'w+', \
                             level    = logging.DEBUG)
        self.phy = chip.phy.OQPSKPhy( chip.phy.band.MHz_780)
        self.dut = chip.mac.Mac( self.phy)

    def test_reset( self):
        result = self.dut.command( mlme.reset.request( True))
        self.assertTrue( isinstance( result, mlme.reset.confirm))
        self.assertEqual( result.status, chip.mac.status.SUCCESS)
        

if __name__ == '__main__':
    unittest.main()

7e32e2a32b607e79a9c2baa5d6cda4c8788f43eb
<mask token>


class TestMAC(unittest.TestCase):
    <mask token>

    def test_reset(self):
        result = self.dut.command(mlme.reset.request(True))
        self.assertTrue(isinstance(result, mlme.reset.confirm))
        self.assertEqual(result.status, chip.mac.status.SUCCESS)


<mask token>

<mask token>


class TestMAC(unittest.TestCase):

    def setUp(self):
        logging.basicConfig(format='%(asctime)s %(message)s', filename=
            'test_mac.log', filrmode='w+', level=logging.DEBUG)
        self.phy = chip.phy.OQPSKPhy(chip.phy.band.MHz_780)
        self.dut = chip.mac.Mac(self.phy)

    def test_reset(self):
        result = self.dut.command(mlme.reset.request(True))
        self.assertTrue(isinstance(result, mlme.reset.confirm))
        self.assertEqual(result.status, chip.mac.status.SUCCESS)


<mask token>

<mask token>


class TestMAC(unittest.TestCase):

    def setUp(self):
        logging.basicConfig(format='%(asctime)s %(message)s', filename=
            'test_mac.log', filrmode='w+', level=logging.DEBUG)
        self.phy = chip.phy.OQPSKPhy(chip.phy.band.MHz_780)
        self.dut = chip.mac.Mac(self.phy)

    def test_reset(self):
        result = self.dut.command(mlme.reset.request(True))
        self.assertTrue(isinstance(result, mlme.reset.confirm))
        self.assertEqual(result.status, chip.mac.status.SUCCESS)


if __name__ == '__main__':
    unittest.main()

import unittest
import logging
import chip.mac
import chip.phy
import chip.mlme as mlme


class TestMAC(unittest.TestCase):

    def setUp(self):
        logging.basicConfig(format='%(asctime)s %(message)s', filename=
            'test_mac.log', filrmode='w+', level=logging.DEBUG)
        self.phy = chip.phy.OQPSKPhy(chip.phy.band.MHz_780)
        self.dut = chip.mac.Mac(self.phy)

    def test_reset(self):
        result = self.dut.command(mlme.reset.request(True))
        self.assertTrue(isinstance(result, mlme.reset.confirm))
        self.assertEqual(result.status, chip.mac.status.SUCCESS)


if __name__ == '__main__':
    unittest.main()

import unittest
import logging
import chip.mac
import chip.phy
import chip.mlme as mlme


class TestMAC( unittest.TestCase):
    def setUp( self):
        logging.basicConfig( format   = '%(asctime)s %(message)s', \
                             filename = 'test_mac.log', \
                             filrmode = 'w+', \
                             level    = logging.DEBUG)
        self.phy = chip.phy.OQPSKPhy( chip.phy.band.MHz_780)
        self.dut = chip.mac.Mac( self.phy)

    def test_reset( self):
        result = self.dut.command( mlme.reset.request( True))
        self.assertTrue( isinstance( result, mlme.reset.confirm))
        self.assertEqual( result.status, chip.mac.status.SUCCESS)
        

if __name__ == '__main__':
    unittest.main()
