'Tests start method when an unidentified error has happened
while getting the card'

@mock.patch('wifiphisher.common.interfaces.pyw.getcard')
def test_start_interface_unidentified_error_error(self, pyw):

    pyw.side_effect = pyric.error(2220, 'This    is    a    fake    error')
    with self.assertRaises(pyric.error) as error:
        self.network_manager.start()
    the_exception = error.exception
    self.assertEqual(the_exception[0], 2220, 'The    error    was    not    caught.')
