CXMAN-255: Don't retry on firware reset errors
AIT-533 changing get_uplink_info to return a dict instead of str

Signed-off-by: matthew.hodgins <matthew.hodgins@calxeda.com>
AIT-525 making guid a lazy init property

Signed-off-by: matthew.hodgins <matthew.hodgins@calxeda.com>
AIT-396: Added generate_sel and sel_elist() to Dummy BMC for testing.

Signed-off-by: evasquez <eric.vasquez@calxeda.com>
AIT-396: Remove inadvertent commit.

Didn't mean to make DummyNode inherit from Node.

Signed-off-by: evasquez <eric.vasquez@calxeda.com>
AIT-326: Remove unittest-xml-reporting <1.6.0 requirement.

Signed-off-by: evasquez <eric.vasquez@calxeda.com>
nojira: Fixed pylint warnings.

Signed-off-by: evasquez <eric.vasquez@calxeda.com>
CXMAN-262: Fix sensor output formatting in CLI (tspackage, sensors)

Looks like we were incorrectly assuming that all sensor values were
parsable as floats. This isn't necessarily true.
CXMAN-264: Rename cxmanage_test to cxmanage_api.tests

So everything is a subpackage of cxmanage_api! Whoo
CXMAN-263: Add generic Dummy class infrastructure

Based on the python Mock framework. This will allow us to define
dummy classes that automatically track method calls, pass the
isinstance test, and raise AttributeError if we try to access
anything that wasn't defined in the original class.
CXMAN-263: Factor dummies out of node_test

DummyBMC, DummyUbootEnv, and DummyIPRetriever. Each gets its own
file, and they're now moved to cxmanage_api.dummies. Yay
CXMAN-263: Add dummy's instance variables to SpeccedMock

This allows dummy subclasses to set their own instance variables,
and not have them be mysteriously missing. Yay!
CXMAN-263: Don't use the wrap functionality in Mock

It has some undesirable characteristics -- for example, setting an
instance variable to the Mock doesn't set the same variable to the
wrapped object.

Instead, we just build a Mock and set the side effects afterward.
CXMAN-263: Refactor DummyBMC to use the generic Dummy class

Also fixed node_test and fabric_test to work with it. We don't have
to manually maintain an "executed" list anymore! YAY
CXMAN-263: Rename "dummies" subpackage to "dummy"

I like it a little better.
CXMAN-263: Move DummyNode from fabric_test into the dummy package
CXMAN-263: Refactor DummyNode to use the generic Dummy

Trimming away more .executed stuff!
CXMAN-263: Move Mock spec to a class variable

Fixes the multiple inheritence problem. Instead of inhereting from
Dummy(Node), we inherit from Dummy and set dummy_spec = Node.

This allows us to make a child of DummyNode, with a different spec,
without having to inherit from both Dummy(ChildOfNode) and
DummyNode.
CXMAN-263: Change Dummy to be a proper subclass of Mock

Turns out this is a much more elegant solution despite my initial
problems with it.
CXMAN-263: Add unit tests for the Dummy class

Unit testing our unit testing framework! Whoa!

Actually, Dummy doesn't have much code, but has been pretty hard
to wrap my head around. So, here are some tests to assert that it
behaves correctly.