Package madrona :: Package features :: Module tests :: Class CollectionTest
[hide private]

Class CollectionTest

source code

django.test.TestCase --+
                       |
                      CollectionTest

Instance Methods [hide private]
 
setUp(self) source code
 
test_add_remove_at_feature_level(self) source code
 
test_add_remove_at_collection_level(self) source code
 
test_feature_set(self)
When checking which mpas belong to folder1 we can: * look only at immediate children * look for children of a given feature class * look recursively through all containers
source code
 
test_deep_recursion(self)
folder1...
source code
 
test_potential_parents(self)
Folder (of which TestArray is a valid child but Pipeline is NOT) TestArray (of which Pipeline is a valid child) Therefore, Folder is also a potential parent of Pipeline
source code
 
test_no_potential_parents(self) source code
 
test_add_invalid_child_feature(self)
Try to add a Pipeline to Folder; feature.add has a runtime assertion so this should raise an AssertionError
source code
 
test_copy_feature_collection(self)
folder1 copied to folder1-copy make sure it contains mpa1-copy, mpa2-copy and folder2-copy
source code
Method Details [hide private]

test_feature_set(self)

source code 

When checking which mpas belong to folder1 we can:
* look only at immediate children
* look for children of a given feature class
* look recursively through all containers

 folder1
  |- mpa1
  |- folder2
      | - mpa2

test_deep_recursion(self)

source code 

folder1
 |- mpa1
 |- folder2
     | - mpa2
     | - folder3
          |- mpa3
          |- folder4
              |- mpa4
              |- mpa5

test_potential_parents(self)

source code 

Folder (of which TestArray is a valid child but Pipeline is NOT)
TestArray (of which Pipeline is a valid child)
Therefore, Folder is also a potential parent of Pipeline

folder1
 |-my_array
   |-self.pipeline
   |-self.mpa1