A lot of my tests actually do a bunch of mini tests. The logic kinda looks something like:  tests = [("input", "output"), ("input2", "output2")] for input, output in tests:     # do test stuff...   This works well for the most part. However, when one of the mini tests fails, it's tedious to fix because none of the mini tests after it get run.  How can I get the "mini tests" to behave like separate tests?  I'm using python3's built in unittest module. I've tried using TestSuite as  but it doesn't appear to work.
I have some kind of test data and want to create a unit test for each item. My first idea was to do it like this: import unittest  l = [[&quot;foo&quot;, &quot;a&quot;, &quot;a&quot;,], [&quot;bar&quot;, &quot;a&quot;, &quot;b&quot;], [&quot;lee&quot;, &quot;b&quot;, &quot;b&quot;]]  class TestSequence(unittest.TestCase):     def testsample(self):         for name, a,b in l:             print &quot;test&quot;, name             self.assertEqual(a,b)  if __name__ == '__main__':     unittest.main()  The downside of this is that it handles all data in one test. I would like to generate one test for each item on the fly. Any suggestions?
I have append a mesh (rex) from this .blend .  In edit Mode I see different vertices from objcet mode (see pictures). The vertices of belt are missing!  OBJECT MODE:   EDIT MODE:   How can I edit vertices of belt? Is It a bug?  This is my .blend  maybe can help. It has come to the point in my computing program now where I have 5 swinging pendulums that are all modified at once by slider values. These values are drawn onto the from and passed through the class pendulum. To change the values the update button is run, and their is a default option to use a setup that works. The values are also shown on screen through some simple labels. The zero button sets all values (except length) to zero.  The values for each pendulum drawn is:   String length angle Acceleration (angular) Angluar velocity Damping or friction Gravity   My calcuations for these values: (Bob = the weight at the end of the string, and there are X and Y Co-ordiantes for it.  bobX = originX + (Math.Sin(angle) * length);         bobY = originY +(Math.Cos(angle) * length);   Caclulate Acceleration:  Angular Acceleration = (-1 * gravity / length) * Math.Sin(angle);    Increment Velocity:          Angular Velocity += Angluar Acceleration;   Increment Angle          angle += AngularVelocity;   Friction action, pendulum eventually 0's          AngularVelocity*= damping;   Now my next task is to make the pendulums collide "realistically" and recreate a newtons cradle type effect. I've looked into elastic collision solutions on particle e.g. here is an excellent example:    I've also looked at the raw physics behind it  but my brain couldn't get to grips with the raw physics side of things.  So I'm wondering if anybody could help me figuring out the theory for the collisions.  My current idea is when the co-ordinates meet the velocity will simply change polarity e.g. +10 to -10 in the opposing pendulum. Am I correct here?  If you are into code I've posted the code on stack overflow Two paths that show that $\frac{x-y}{x^2 + y^2}$ has no limit when $(x,y) \rightarrow (0,0)$ Conjunction Puzzle: Is this clause dependent or independent? Third grade teacher here. I plan to teach students to distinguish between simple, compound and complex sentences — but only if I can demonstrate a clear and meaningful difference between the latter two!  Complex or Compound? Each sentence in the following pairs is similar to its partner.   All dogs are mammals, so huskies are mammals. All dogs are mammals, therefore huskies are mammals. I come bearing soup, for Kate is sick. I come bearing soup, because Kate is sick.   Are the sentences above complex or compound?   First, we need to decide whether each italicized clause is independent or dependent. To me, they all look dependent. If that is the case, there's not much need to teach about compound sentences. Is there a meaningful difference between the sentences in each pair that I am missing? (Are the FANBOYS as special as they'd like to think?) Setting Access-Control-Allow-Origin in ASP.Net MVC - simplest possible method Deriving even odd function expressions What is the logic/thinking process behind deriving an expression for even and odd functions in terms of $f(x)$ and $f(-x)$?  I've been pondering about it for a few hours now, and I'm still not sure how one proceeds from the properties of even and odd functions to derive: $$\begin{align*} E(x) &amp;= \frac{f(x) + f(-x)}{2}\\ O(x) &amp;= \frac{f(x) - f(-x)}{2} \end{align*}$$ What is the logic and thought process from using the respective even and odd properties, $$\begin{align*} f(-x) &amp;= f(x)\\    f(-x) &amp;= -f(x) \end{align*}$$   to derive $E(x)$ and $O(x)$?    The best I get to is: For even: $f(x)-f(-x)=0$ and for odd: $f(x)+f(-x)=0$  Given the definition of $E(x)$ and $O(x)$, it makes a lot of sense (hindsight usually is) but starting from just the properties. Wow, I feel I'm missing something crucial. Prove $\limsup\limits_{n \to \infty} (a_n+b_n) \le \limsup\limits_{n \to \infty} a_n + \limsup\limits_{n \to \infty} b_n$ I am stuck with the following problem.     Prove that $$\limsup_{n \to \infty} (a_n+b_n) \le \limsup_{n \to \infty} a_n + \limsup_{n \to \infty} b_n$$   I was thinking of using the triangle inequality saying $$|a_n + b_n| \le |a_n| + |b_n|$$ but the problem is not about absolute values of the sequence.  Intuitively it's clear that this is true because $a_n$ and $b_n$ can "reduce each others magnitude" if they have opposite signs, but I cannot express that algebraically...  Can someone help me out ? How do we fetch data through REST service which hosted in azure from SharePoint site which in office 365? How do we fetch data through REST service which is hosted in window azure, from SharePoint site which in office 365? Can we need to create app for SharePoint which contain restAPI endpoint or any better solution than this? We are asked the following:      let $f(x)$ be a continuous function on $[0, 1]$ such that   $$\int _ {0} ^ {1} \ f(y) dy = 1$$   prove that $f(x) = 1$ for some $x ∈ [0, 1]$   The question asks to take into account Rolle's Theorem and Mean Value Theorem.  I'm aware of the definitions, but I am really unsure how to answer this question and my tutors are not really responding till after easter.    Could someone please help? Why is there a "y" involved?  Thanks you When a lattice is a lattice of open sets of some topological space? When a lattice $(L,\leqslant)$ is a lattice of open (or closed) sets of some topological space $(X,\tau)$? Which conditions have to be satisfied? We may assume that $X$ is $T_1$. The Punjab is a rich state.   Is it correct to use the before Punjab? Having trouble indexing and executing a query in O (log n) time.  The query includes an INNER JOIN, an ORDER BY, and an equality operation. If I understand the laws of databases correctly, a query can be indexed and executed in O (log n) time (or thereabouts) if a non-equality operator is not used on more than one column. In this case, I believe the INNER JOIN does count as an equality operator and the non-equality operator would be the ORDER BY portion of the query. This table has upwards of 10,000,000 rows and needs to handle several reads and writes per second.  Using PostgreSQL. This is what the table looks like. As you can see, the column 'Names' is a list property and it is the column that the INNER JOIN goes against:  Age Names                       Date 34  ['carla', 'john', 'sam']    3/13/2011 26  ['json', 'cindy', 'joel']   3/13/2011 72  ['beth', 'amber', 'susie']  3/13/2011 14  ['john', 'jim', 'debie']    3/13/2011   This is the query that we are trying to do:  SELECT * FROM the_table WHERE Age==26 AND Names=='john' ORDER BY Date   My background is from using App Engine's Big Table, so I've used equality operators here to indicate that 'john' should be one of the names in the Names column. This would be an acceptable query in GAE's big table, it would execute in O (log N) time as all Big Table queries are reqyured to do. I am assuming there is a way to do this in PostgreSQL as well since PostgreSQL accepts list data types as columns.  Is this possible to do in PostgreSQL?  If so, how should the index be set up (we can't figure out how to set up an index that takes into account the three properties)? Is there a way to test an application where you simulate a hundred different clients connecting to a IIS server and asking the same data? At the customer where our project is running they have 400 computers and they often do stress tests with all computers. I on the other hand have only got my laptop... (and a development server).  (In my case the data is asked through a WebORB Gateway). Underlined math in a Beamer presentation: felt-tip marker underlining I have always believed that it was ok to replace a capacitor with a slightly higher voltage rated one. eg 16v with 25v.Going higher than this would risk the capacitance value being out at the working voltage. However I just read the following quote from this       Electrolytic capacitors are non-ferroelectric with a very low dielectric constant. Their capacitance is derived from a very high surface area and nanometer thick dielectric layers. Their capacitance is not a function of applied voltage.‐Design Solutions For DC Bias In Multilayer Ceramic Capacitors (August 2010 Electronic Engineering Times)   So does this rule not apply to aluminum electrolytics? Eg will I have no issues replacing an electrolytic 25v 100uf with a 50v 100uf assuming both are low esr, similar footprint and good quailty? Proof of one inequality $a+b+c\leq\frac{a^3}{bc}+\frac{b^3}{ca}+\frac{c^3}{ab}$ How to prove this for positive real numbers? $$a+b+c\leq\frac{a^3}{bc}+\frac{b^3}{ca}+\frac{c^3}{ab}$$  I tried AM-GM, CS inequality but all failed. Using the quadratic formula, we have either 0, 1, or 2 solutions. I wonder if we could use it this formula for congruence? Or is there a formula to solve quadratic equation for congruence?  Edit Assume that $ax^2 + bx + c \equiv 0 \pmod{p}$, where $p$ is prime with $(a, p) = 1$, then is there a formula for this equation?    Thanks, Dealing with rust on a steel frame How to know the types of windowing system, window manager and desktop environment of a Unix-like OS I have a seven hour layover at Brussels airport, and I'd like to know whether there is enough time to leave the airport and go into the Brussels city center for a beer or a meal?  If so, what transportation is available, how does it work, how long does it take, and how much does it cost?  Are there convenient luggage lockers in the airport so that I can avoid taking my carry-on luggage into the city?  This layover is from 8:30 in the morning to 15:30 in the afternoon on a Monday, and the flight is arriving from the United States.  The outgoing flight is within Western Europe.