Browse Source

Misc

git-svn-id: https://bucket.mit.edu/svn/nilm/nilmdb@9297 ddd99763-3ecb-0310-9145-efcb8ce7c51f
tags/bxinterval-last
Jim Paris 13 years ago
parent
commit
22c8b08523
2 changed files with 11 additions and 21 deletions
  1. +2
    -21
      nilmdb/test_interval.py
  2. +9
    -0
      setup.cfg

+ 2
- 21
nilmdb/test_interval.py View File

@@ -145,7 +145,7 @@ def iset(string):
return iset

def test_intervalset_iset():
"""test basic iset construction"""
"""Test basic iset construction"""
assert(iset(" [----] ") ==
iset(" [-|--] "))

@@ -154,7 +154,7 @@ def test_intervalset_iset():
iset("[|] [-----]"))

def test_intervalset_intsersect():
"""test intersection (&)"""
"""Test intersection (&)"""
assert_raises(TypeError, iset("[--]").__and__, 1234)
assert(iset("[---------]") &
@@ -184,22 +184,3 @@ def test_intervalset_intsersect():
assert(iset(" [----][--]") &
iset("[-] [--] []") ==
iset(" [] [-] []"))

# start-other.start start-other.end end-other.start end-other.end
# --- < < < < n
# ---
#
# --- < < > <
# ---
#
# - > < > <
# ---
#
# ------- < < > >
# ---
#
# --- > < > >
# ---
#
# --- > > > > n
# ---

+ 9
- 0
setup.cfg View File

@@ -0,0 +1,9 @@
[nosetests]
nocapture=1
with-coverage=1
cover-inclusive=1
cover-package=nilmdb
cover-erase=1
stop=1
verbosity=2


Loading…
Cancel
Save