Ejemplo n.º 1
0
    def test_whencalled_with_empty_key_does_not_update_dict(self):
        devices = {}
        dev = devscan.INVALID_DEVICE_NAME
        entry = 'entry'

        devscan.update_devs_dict(devices, dev, entry)

        self.assertEquals({}, devices)
Ejemplo n.º 2
0
    def test_whencalled_with_empty_key_does_not_update_dict(self):
        devices = {}
        dev = devscan.INVALID_DEVICE_NAME
        entry = 'entry'

        devscan.update_devs_dict(devices, dev, entry)

        self.assertEquals({}, devices)
Ejemplo n.º 3
0
    def test_whencalled_updates_dict(self):
        devices = {}
        dev = 'dev'
        entry = 'entry'

        devscan.update_devs_dict(devices, dev, entry)

        self.assertEquals({'dev': 'entry'}, devices)
Ejemplo n.º 4
0
    def test_whencalled_updates_dict(self):
        devices = {}
        dev = 'dev'
        entry = 'entry'

        devscan.update_devs_dict(devices, dev, entry)

        self.assertEquals({'dev': 'entry'}, devices)