Fix the RepositoryForm unit tests, and make them less error-prone.
Fix the RepositoryForm unit tests, and make them less error-prone.

My final work for the Bitbucket support broke RepositoryForm unit tests,
and I apparently failed to test those. So, this change fixes it, by
making use of a TestService instead of using an existing hosting service
for tests. This way, we can control things like authorization (which is
what broke the tests before), repository checking, fields, etc.

beol/reviewboard,sgallagher/reviewboard,custode/reviewboard,sgallagher/reviewboard,chipx86/reviewboard,1tush/reviewboard,1tush/reviewboard,davidt/reviewboard,reviewboard/reviewboard,beol/reviewboard,1tush/reviewboard,1tush/reviewboard,brennie/reviewboard,1tush/reviewboard,davidt/reviewboard,custode/reviewboard,davidt/reviewboard,reviewboard/reviewboard,brennie/reviewboard,1tush/reviewboard,custode/reviewboard,bkochendorfer/reviewboard,custode/reviewboard,bkochendorfer/reviewboard,beol/reviewboard,1tush/reviewboard,KnowNo/reviewboard,bkochendorfer/reviewboard,1tush/reviewboard,KnowNo/reviewboard,chipx86/reviewboard,KnowNo/reviewboard,reviewboard/reviewboard,brennie/reviewboard,sgallagher/reviewboard,brennie/reviewboard,bkochendorfer/reviewboard,chipx86/reviewboard,sgallagher/reviewboard,1tush/reviewboard,KnowNo/reviewboard,davidt/reviewboard,reviewboard/reviewboard,chipx86/reviewboard,beol/reviewboard