def METHOD_NAME(self):
    """Unit tests for class UpdateCheck using fake network"""
    wa = '<winapp2 url="http://katana.oooninja.com/bleachbit/winapp2.ini" sha512="ce9e18252f608c8aff28811e372124d29a86404f328d3cd51f1f220578744bb8b15f55549eabfe8f1a80657fc940f6d6deece28e0532b3b0901a4c74110f7ba7"/>'
    update_tests = [
        ('<updates><stable ver="0.8.4">http://084</stable><beta ver="0.8.5beta">http://085beta</beta>%s</updates>' % wa,
         (('0.8.4', 'http://084'), ('0.8.5beta', 'http://085beta'))),
        ('<updates><stable ver="0.8.4">http://084</stable>%s</updates>' % wa,
         (('0.8.4', 'http://084'), )),
        ('<updates><beta ver="0.8.5beta">http://085beta</beta>%s</updates>' % wa,
         (('0.8.5beta', 'http://085beta'), )),
        ('<updates></updates>', ())]
    # fake network
    original_open = bleachbit.Update.build_opener
    xml = ""
    class FakeOpener:
        def add_headers(self):
            pass
        def read(self):
            return xml
        def open(self, url):
            return self
    # TODO: mock
    bleachbit.Update.build_opener = FakeOpener
    for xml, expected in update_tests:
        updates = check_updates(True, False, None, None)
        self.assertEqual(updates, expected)
    bleachbit.Update.build_opener = original_open