This repository has been archived on 2023-01-02. You can view files and clone it, but cannot push or open issues or pull requests.
django-pyvows/vows/simple_vows.py

30 lines
685 B
Python
Raw Normal View History

2011-05-06 02:53:07 +00:00
#!/usr/bin/python
# -*- coding: utf-8 -*-
# django-pyvows extensions
# https://github.com/rafaelcaricio/django-pyvows
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 Rafael Caricio rafael@caricio.com
2011-08-18 14:28:51 +00:00
import os
2011-05-10 09:19:02 +00:00
from pyvows import Vows, expect
2011-08-18 14:28:51 +00:00
from django_pyvows.context import DjangoContext
from django_pyvows.assertions import *
2011-05-10 09:19:02 +00:00
from sandbox.main.views import home
@Vows.batch
class DefaultsVows(DjangoContext):
def topic(self):
2011-08-18 14:28:51 +00:00
del os.environ['DJANGO_SETTINGS_MODULE']
return self.get_settings()
2011-05-10 09:19:02 +00:00
def should_be_using_the_default_settings(self, topic):
expect(topic).to_equal('settings')
2011-05-06 02:53:07 +00:00