mbi/django-rosetta — Issue #11: Some tests fail
Author: mridang
Created: 2011-11-15 11:55:02+00:00
State: open

These two tests fail. Specifically it's a second part of the tests that fail where you're checking that the locale file exists in the response content. I looked at this issue and the reason is because you're checking for Unix paths but on a windows machine, it returns "rosetta\locale\xx\LC_MESSAGES\django.po". This should be fairly minor to fix.

```python
def test_6_ExcludedApps(self):

rosetta_settings.EXCLUDED_APPLICATIONS = ('rosetta',)

r = self.client.get(reverse('rosetta-pick-file') +'?filter=third-party')
r = self.client.get(reverse('rosetta-pick-file'))
self.assertTrue('rosetta/locale/xx/LC_MESSAGES/django.po' not in r.content)

rosetta_settings.EXCLUDED_APPLICATIONS = ()

r = self.client.get(reverse('rosetta-pick-file') +'?rosetta')
self.assertTrue('rosetta/locale/xx/LC_MESSAGES/django.po' in r.content)

def test_7_selfInApplist(self):
self.client.get(reverse('rosetta-pick-file') +'?filter=third-party')
r = self.client.get(reverse('rosetta-pick-file'))
self.assertTrue('rosetta/locale/xx/LC_MESSAGES/django.po' in r.content)

self.client.get(reverse('rosetta-pick-file') + '?filter=project')
r = self.client.get(reverse('rosetta-pick-file'))
self.assertTrue('rosetta/locale/xx/LC_MESSAGES/django.po' not in r.content)
```