'Demonstrate the failure mode for accounts that looks like versions,
if you can make _parse_path better and this is the *only* test that
fails you can delete it ;)'

def test_parse_account_that_looks_like_version(self):

    bad_accounts = ('v3.0', 'verybaddaccountwithnoprefix')
    for bad_account in bad_accounts:
        req = Request.blank(('/endpoints/%s/c/o' % bad_account))
        self.assertRaises(ValueError, self.list_endpoints._parse_path, req)
    even_worse_accounts = {'v1': 1.0, 'v2.0': 2.0}
    for (bad_account, guessed_version) in even_worse_accounts.items():
        req = Request.blank(('/endpoints/%s/c/o' % bad_account))
        (version, account, container, obj) = self.list_endpoints._parse_path(req)
        self.assertEqual(version, guessed_version)
        self.assertEqual(account, 'c')
        self.assertEqual(container, 'o')
        self.assertIsNone(obj)
