def assertLoggedIn(self, d, username):
        result = []
        d.addBoth(result.append)
        self.assertEquals(len(result), 1, "login incomplete")
        if isinstance(result[0], Failure):
            result[0].raiseException()
        self.assertEquals(result[0], username)
Adds a plugin by filename or URL.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/conch/test/test_checkers.py/UNIXPasswordDatabaseTests.assertLoggedIn--crossover with--dataset/ETHPy150Open robmadole/jig/src/jig/commands/base.py/add_plugin